<template>
  <div>
    <h3>demo组件</h3>
    <father />
  </div>

</template>
<script>
import Father from './model/Father.vue'

export default {
  components: { Father },
  props: {

    value: {
      type: Number,
      default: 0
    }
  },

  methods: {
    hClick() {
      this.$emit('input', this.value + 1)
    }
  }
}
</script>
